package com.example.cloud.dao.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.cloud.domain.model.user.UserInfo;

/**
 * 可混合使用注解和XML
 *
 * @author tongyufu
 */
@Repository
//@CacheNamespace(implementation = MyBatisRedisCache.class)
public interface UserDao extends BaseMapper<UserInfo> {

    int insertMap(Map<String, Object> params);

    int insertParam(@Param("name") String name, @Param("age") Integer age);

    int insertName(String name);

    int insertList(List<String> names);

    int insertList2(List<UserInfo> users);
}
